package com.pin.zheng.xiangmu;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.pin.zheng.xingmulibrary.PinZhengBase;
import com.pin.zheng.xingmulibrary.TestUtil;
import com.pin.zheng.xingmulibrary.util.LogUtils;


public class MainActivity extends AppCompatActivity {
    private TextView tv_1;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        tv_1 = findViewById(R.id.tv_1);
        tv_1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                TestUtil.showTestUtil(MainActivity.this, "测试成功");
            }
        });
        PinZhengBase.init(getApplication());
        PinZhengBase.setBaseUrl("http://47.243.109.142/stage-api/");
        PinZhengBase.setAPIService(interfaces.class);
        LogUtils.e(PinZhengBase.getApiservice().toString());
//        LogUtils.e(((interfaces)RetrofitClient.getInstance().getApi()).login("123"));

    }
}
